#include "client.hpp"
#include <iostream>

int main() {
    try {
        uds_model::Client cli("/tmp/ck_example.sock");
        cli.connect();
        std::string line;
        while (std::getline(std::cin, line)) {
            cli.send_line(line);
            std::cout << "echo: " << cli.read_line() << '\n';
        }
    } catch (const std::exception& e) {
        std::cerr << "Client error: " << e.what() << '\n';
    }
}
